#include <stdio.h>

void rhom_stars(int n)
{

    int N = n - 1;
    int r;
    int c;


    for ( r = 0;r <= 2 * N; ++r) {
        for ( c = 0; c <= 2 * N; ++c) {
            if ( (r + c - N >= 0 && r + c - 3 * N <= 0) && (r - c + N >= 0 && r - c - N <= 0)) {
                printf("*");
            }
            else {
                printf(" ");
            }
        }
        printf("\n");
    }

}


int main()
{

    rhom_stars(3);

    return 0;
}